.class public Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;
.super Ljava/lang/Object;
.source "DuCaptionPicker.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;
    }
.end annotation


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Landroid/view/ViewGroup;

.field private final c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

.field private d:Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;

.field private e:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->a:Landroid/content/Context;

    .line 3
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->color_picker_cursor_margin_bottom:I

    .line 4
    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    .line 5
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget v0, Les/y4;->durec_video_edit_caption_text_color_picker_layout:I

    const/4 v1, 0x0

    .line 6
    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    const/16 v0, 0x8

    .line 7
    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 8
    sget v0, Les/x4;->color_picker_cursor:I

    .line 9
    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->a:Landroid/content/Context;

    const/high16 v2, 0x3fc00000    # 1.5f

    invoke-static {v1, v2}, Lcom/esfile/screen/recorder/utils/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;->setEdgeLineWidth(I)V

    .line 11
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->a:Landroid/content/Context;

    .line 12
    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v3, Les/u4;->durec_cloud_video_item_disabled_color:I

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    .line 13
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;->setEdgeLineColor(I)V

    .line 14
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;->a()V

    .line 15
    sget v1, Les/x4;->picked_color:I

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;

    .line 16
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->a:Landroid/content/Context;

    invoke-static {v3, v2}, Lcom/esfile/screen/recorder/utils/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;->setEdgeLineWidth(I)V

    .line 17
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->a:Landroid/content/Context;

    .line 18
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/u4;->durec_cloud_video_item_disabled_color:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    .line 19
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;->setEdgeLineColor(I)V

    .line 20
    sget v2, Les/x4;->color_picker:I

    invoke-virtual {p1, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

    iput-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

    const/4 v3, 0x1

    .line 21
    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;->setShowCursor(Z)V

    .line 22
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

    new-instance v3, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$a;

    invoke-direct {v3, p0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;)V

    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;->setOnColorPickListener(Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView$a;)V

    .line 23
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$b;

    invoke-direct {v2, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorPreviewView;)V

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;->setOnPressDownListener(Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView$b;)V

    .line 24
    sget v0, Les/x4;->fontPicker:I

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->e:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;

    .line 25
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->setOnFontPickerClickListener(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;)V

    .line 26
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 27
    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 28
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->b:Landroid/view/ViewGroup;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;)Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->d:Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;

    return-object p0
.end method


# virtual methods
.method public a()Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->e:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->getDefaultTypefaceWrapper()Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;

    move-result-object v0

    return-object v0
.end method

.method public a(ILjava/lang/String;)V
    .locals 2

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->b:Landroid/view/ViewGroup;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/ColorView;->setColor(I)V

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->e:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->setSelectedTypeface(Ljava/lang/String;)V

    return-void
.end method

.method public a(Landroid/view/ViewGroup;)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->b:Landroid/view/ViewGroup;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;)V
    .locals 0

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->d:Lcom/esfile/screen/recorder/videos/edit/activities/caption/o$d;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/o;->e:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->setSelectedTypeface(Ljava/lang/String;)V

    return-void
.end method
